package com.wss.service.fegin;


import com.wss.common.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import com.wss.gateway.config.ServiceConfig;
import com.wss.service.fegin.fallbackFactory.CodeServiceFallbackFactory;

@FeignClient(value = ServiceConfig .CODESERVICENAME,fallbackFactory = CodeServiceFallbackFactory.class)
public interface CodeService {


    @GetMapping("/code/validate")
    Result validate(@RequestParam("email")String email, @RequestParam("code")String code);
}
